package yf.mall.enums;

import lombok.Getter;


/**
 * ${comments}
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Sep 18 12:11:02 CST 2019
 */
@Getter
public enum MallGoodsShelfEnum {


    DOWN(0,"下架")
    ,


    ON(1,"上架")

    ;


    int index;
    String value;

    MallGoodsShelfEnum(int index,String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallGoodsShelfEnum.values()[idx].getValue();
    }

}
